package com.ww.microrpc.netty.exception;

/**
 * response error from service
 */
public class RpcServiceException extends RuntimeException {

    private String message;

    public RpcServiceException(String message) {
        this.message = message;
    }

    public RpcServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
